namespace go publishserver

struct User{
    1:i64 ID
    2:string Name
    3:i64 FollowCount
    4:i64 FollowerCount
    5:bool IsFollow
}

struct Video{
	1:i64 ID
	2:User Author
	3:string Title
	4:string PlayUrl
	5:string CoverUrl
	6:i64 FavouriteCount
	7:i64 CommentCount
	8:bool IsFavourite
}
struct PublishVideoRequest{
    1:Video video
}
struct PublishVideoResponse{
}


struct GetPublishListRequest{
    1:User user
}

struct GetPublishListResponse{
    1:list<Video> resultList
}

service PublishService {
    PublishVideoResponse PublishVideo (1:PublishVideoRequest req)
    GetPublishListResponse GetPublishList (1:GetPublishListRequest req)
}



